package com.mask.common.swagger.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Swagger配置属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "mask.swagger")
public class SwaggerProperties {
    
    /**
     * 是否开启swagger
     */
    private boolean enabled = true;

    /**
     * 标题
     */
    private String title = "Mask API文档";

    /**
     * 描述
     */
    private String description = "Mask API文档";

    /**
     * 版本
     */
    private String version = "1.0.0";

    /**
     * 作者
     */
    private String author = "mask";

    /**
     * 作者邮箱
     */
    private String email = "mask@example.com";

    /**
     * 扫描的包路径
     */
    private String basePackage = "com.mask";

    /**
     * 分组名称
     */
    private String groupName = "default";

    /**
     * 分组名称
     */
    private String host = "127.0.0.1";

    /**
     * 许可证
     */
    private String license = "Apache 2.0";
    /**
     * 许可证URL
     */
    private String licenseUrl = "https://www.apache.org/licenses/LICENSE-2.0.html";

    /**
     * 服务条款URL
     */
    private String termsOfServiceUrl = "https://www.mask.com/terms";

}